import request from './network.js'

const headers = {'content-type': 'application/x-www-form-urlencoded'};

// 获取验证码
export function getSMSCode(prams) {
  return request({
    url: '/baseUser/getSMSCode',
    method: 'POST',
		headers,
    data: {"data": prams}
  })
}

// 登录
export function toLogin(prams) {
  return request({
    url: '/baseUser/login',
    method: 'POST',
		headers,
    data: {"data": prams}
  })
}

// 登录
export function scToLogin(prams) {
  return request({
		type: 'sc',
    url: '/shopUser/register',
    method: 'POST',
		headers,
    data: {"data": prams}
  })
}